package com.service.impl;

import org.springframework.stereotype.Service;

import java.util.*;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import com.utils.PageUtils;
import com.utils.Query;
import com.dao.FazhixuanchuanLiuyanDao;
import com.entity.FazhixuanchuanLiuyanEntity;
import com.service.FazhixuanchuanLiuyanService;
import com.entity.view.FazhixuanchuanLiuyanView;

/**
 * 法制宣传留言 服务实现类
 */
@Service("xinlijiankangLiuyanService")
@Transactional
public class FazhixuanchuanLiuyanServiceImpl extends ServiceImpl<FazhixuanchuanLiuyanDao, FazhixuanchuanLiuyanEntity> implements FazhixuanchuanLiuyanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<FazhixuanchuanLiuyanView> page = new Query<FazhixuanchuanLiuyanView>(params).getPage();
        page.setRecords(baseMapper.selectListView(page, params));
        return new PageUtils(page);
    }


}
